//
//  JSQMessagesCollectionViewVoiceCellOutgoing.m
//  SkyHospital
//
//  Created by C_HAO on 15/4/21.
//  Copyright (c) 2015年 GrayWang. All rights reserved.
//

#import "JSQMessagesCollectionViewCellVoiceOutgoing.h"
#import "UIImage+JSQMessages.h"
#import "JSQMessagesMediaViewBubbleImageMasker.h"


@implementation JSQMessagesCollectionViewCellVoiceOutgoing

- (void)awakeFromNib {
    [super awakeFromNib];
    self.messageBubbleTopLabel.textAlignment = NSTextAlignmentRight;
    self.cellBottomLabel.textAlignment = NSTextAlignmentRight;

    [JSQMessagesMediaViewBubbleImageMasker applyBubbleImageMaskToMediaView:self.voiceImageView isOutgoing:YES];
    [self.voiceImageView setAnimationImages:@[[UIImage jsq_defaultLeft2AudioImage], [UIImage jsq_defaultLeft1AudioImage], [UIImage jsq_defaultLeftAudioImage]]];

    self.voiceImageView.image = [UIImage jsq_defaultLeftAudioImage];
}

@end
